package xyz.bromine0x23.shiningco.plugins;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface Plugin {

	@AliasFor("id")
	String value() default "";

	@AliasFor("value")
	String id() default "";

	String name();

	/**
	 * 使用方法
	 */
	String usage();

}
